home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / X11 / xarchie-2.0.9 / FWF / Dir / Imakefile < prev    next >
Makefile  |  1995-06-18  |  1KB  |  41 lines

  1. #
  2. # Imakefile for Dir
  3. #
  4. # Note that this Imakefile is just sufficient to build the Dir routines
  5. # for use with xarchie. The original FWF distribution contains a more
  6. # elaborate Imakefile for a variety of purposes. See the file ../README.
  7. #
  8. # George Ferguson, ferguson@cs.rochester.edu, 26 Nov 1992.
  9. #
  10.  
  11. SRCS = Directory.c DirMgr.c RegExp.c
  12. OBJS = Directory.o DirMgr.o RegExp.o
  13.  
  14. INCLUDES = -I.
  15.  
  16. AllTarget(first)
  17. NormalLibraryTarget(Dir,$(OBJS))
  18.  
  19. first:
  20.     @rm -f dirent.h
  21.     @(if [ ! -f /usr/include/dirent.h ];            \
  22.         then echo "Patching because no dirent.h";        \
  23.              echo "#ifndef _BRIDIRENT_H_" > dirent.h;    \
  24.              echo "#define _BRIDIRENT_H_" >> dirent.h;    \
  25.              echo "#define dirent direct" >> dirent.h;    \
  26.              echo "#include <sys/dir.h>" >> dirent.h;    \
  27.              echo "#endif" >> dirent.h;            \
  28.         else echo "";                    \
  29.         fi; exit 0)
  30.     @rm -f regexp.h
  31.     @(if [ ! -f /usr/include/regexp.h ];            \
  32.         then echo "Patching because no regexp.h";        \
  33.              echo "#ifndef _BRIREGEXP_H_" > regexp.h;    \
  34.              echo "#define _BRIREGEXP_H_" >> regexp.h;    \
  35.              echo "#define NO_REGEXP 1" >> regexp.h;    \
  36.              echo "#endif" >> regexp.h;            \
  37.         else echo "";                    \
  38.         fi; exit 0)
  39.  
  40. DependTarget()
  41.